PreviousNextTracker indexSee it online !

(164/308) 1393 - Lucene plugin lock prevent jEdit from starting new instance

\!@#$%^&\*()_+> jedit -noserver &
\[1\] 26166
\!@#$%^&\*()_+> 11:33:44 AM \[main\] \[warning\] TagIndex: The lucene index at /home/\!@#$%/.jedit/CtagsInterface/index is locked
11:34:17 AM \[main\] \[error\] main: org.apache.lucene.store.LockReleaseFailedException: Cannot forcefully unlock a NativeFSLock which is held by another indexer component: /home/\!@#$%/.jedit/CtagsInterface/index/write.lock
11:34:17 AM \[main\] \[error\] main: at org.apache.lucene.store.NativeFSLock.release(NativeFSLockFactory.java:329)
11:34:17 AM \[main\] \[error\] main: at org.apache.lucene.index.IndexWriter.unlock(IndexWriter.java:4854)
11:34:17 AM \[main\] \[error\] main: at ctagsinterface.index.TagIndex.<init>(TagIndex.java:127)
11:34:17 AM \[main\] \[error\] main: at ctagsinterface.main.CtagsInterfacePlugin.start(CtagsInterfacePlugin.java:72)
11:34:17 AM \[main\] \[error\] main: at org.gjt.sp.jedit.PluginJAR.startPlugin(PluginJAR.java:1388)
11:34:17 AM \[main\] \[error\] main: at org.gjt.sp.jedit.PluginJAR.activatePlugin(PluginJAR.java:746)
11:34:17 AM \[main\] \[error\] main: at org.gjt.sp.jedit.PluginJAR.activatePluginIfNecessary(PluginJAR.java:816)
11:34:17 AM \[main\] \[error\] main: at org.gjt.sp.jedit.jEdit.main(jEdit.java:478)
11:34:19 AM \[jEdit Worker #0\] \[error\] CtagsInterfacePlugin$7: java.lang.NullPointerException
11:34:19 AM \[jEdit Worker #0\] \[error\] CtagsInterfacePlugin$7: at ctagsinterface.index.TagIndex.deleteTagsFromSourceFile(TagIndex.java:220)
11:34:19 AM \[jEdit Worker #0\] \[error\] CtagsInterfacePlugin$7: at ctagsinterface.main.CtagsInterfacePlugin$7._run(CtagsInterfacePlugin.java:689)
11:34:19 AM \[jEdit Worker #0\] \[error\] CtagsInterfacePlugin$7: at org.gjt.sp.util.Task.run(Task.java:63)
11:34:19 AM \[jEdit Worker #0\] \[error\] CtagsInterfacePlugin$7: at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
11:34:19 AM \[jEdit Worker #0\] \[error\] CtagsInterfacePlugin$7: at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
11:34:19 AM \[jEdit Worker #0\] \[error\] CtagsInterfacePlugin$7: at java.lang.Thread.run(Unknown Source)

after application start the msg box is displayed asking if unlock index \[CtagsInterface one\].
if no is selected then application stucks.
if yes then sometimes it success but i think then index is cleared and the source trees have to be defined again in CtagsInterface plugin \[but this is to be verified\].

there is definitely bug in Lucene as it is unable to share Ctags indexes between instances.

i'm using jEdit 4.5pre1 daily build from 2011.02.15.
CtagsInterface 2.1
lucene-core-3.0.2.jar
lucene-highlighter-3.0.2.jar
lucene-memory-3.0.2.jar
LucenePlugin 2.6

regards
piotr


Submitted *anonymous - 2011-02-18 10:51:30 Assigned
Priority 5 Labels
Status open Group None
Resolution None

Comments

2011-03-24 10:22:58
*anonymous

- **priority**: 5 --> 7

2011-04-07 10:15:11
*anonymous

- **priority**: 7 --> 5